<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends Controller {
	public function index(){
		$value = session('name');
		if ($value) {
        	$this->assign('title', 'ICP_ADMIN_INDEX');
			$this->assign('home', 'Home');
			$this->assign('cur_year', '2015');
			$this->assign('name', $value);
        	$this->display();
		} else {
			redirect('/icp/index.php/admin/login/index', 0, ''); 
		}
    }
}
?>